package cn.ytxy.double_system_data_visualization_demo.user.service;


import cn.ytxy.double_system_data_visualization_demo.user.pojo.vo.DepartmentVO;

import java.util.List;

/**
 * @ClassName DepartmentService
 * @Description TODO
 * @Author renhong~Deng
 * @Date 2025/4/30 15:29
 * @Version 1.0
 */


public interface DepartmentService {

    /**
     * 查询每个部门的总分数和获奖情况（总分等于部门整体分数+部门个人总分数）
     */
    List<DepartmentVO> selectDepartment(String departmentName);

    /**
     * 增加部门
     */
    void addDepartment(String departmentName);


    /**
     * 修改部门
     */
    void editDepartment(String oldDepartmentName, String newDepartmentName);

    /**
     * 删除部门
     */
    void deleteDepartment(String departmentName);

    /**
     * 为部门内所有人添加分数
     *
     * @param departmentName  部门名称
     * @param departmentScore 部门分数
     */
    void addDepartmentScore(String departmentName, Integer departmentScore, String reason);

    List<String> selectDepartmentName();


    void subtractDepartmentScore(String departmentName, Integer departmentScore, String reason);
}
